﻿var express = require("express");
var app = express();

app.use(express.static("dist")).listen(666);



var os=require('os'),
    iptable={},
    ifaces=os.networkInterfaces();
for (var dev in ifaces) {
    ifaces[dev].forEach(function(details,alias){
        if (details.family=='IPv4') {
            iptable[dev+(alias?':'+alias:'')]=details.address;
        }
    });
}
// console.log(iptable);


console.log(`服务器已启动在${iptable['本地连接:1']}:666/h5`);